﻿using CaffeeBuzz_WinForm.BuzzMenu;
using CaffeeBuzz_WinForm.Cafe;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CaffeeBuzz_WinForm.Commands
{
    class MenuCommand:Command
    {
        private List<Menu> menus;
        int _iMenu = -1;

        public MenuCommand()
        {
            menus = new List<Menu>();
            menus.Add(new BreakfastMenu());
            menus.Add(new LunchMenu());
        }
        public int iMenu
        {
            get { return _iMenu; }
            set 
            {
                if (0 <= _iMenu && _iMenu < menus.Count)
                    _iMenu = value;
            }
        }
        public List<Menu> Menus
        {
            get { return menus; }
            set { menus = value; }
        }
        public void LoadFromFile(string FileName)
        {
            throw new NotImplementedException();
        }
    }
}

